﻿using Microsoft.AspNetCore.Mvc;
using ProjectScheduling_web.model;

namespace ProjectScheduling_web.Controllers.U
{
    [Route("[controller]/[action]")]
    public class BController : ControllerBase
    {
        public ActionResult Success<T>(T msg) => Ok(new { state = true, msg });
        public ActionResult Fail<T>(T msg) => Ok(new { state = false, msg });
        public Member? CurrUser {
            get
            {
                return HttpContext.Items["Current_Msg"] as Member;
            }
        }
    }
}
